package de.tbmx.api;

import java.util.Map;

public class Position {
	private String name;
	private int  netPosition;
	private String symbol;
	private String account;
	private String isin ;
	
	public String getName(){
		return name;
	}
	
	public int getNetPosition(){
		return netPosition;
	}

	public String getSymbol(){
		return symbol;
	}
	
	public String getAccount(){
		return account;
	}
	
	public String getISIN(){
		return isin;
	}
	
	public Position( Map<String,String> params ){
		this.name = params.get("NAME");
		this.netPosition = Integer.parseInt( params.get("NETPOS") ); 
		this.symbol = params.get("SYMBOLS");
		this.account = params.get("ACCOUNT");
		this.isin = params.get("ISIN");
	}
	
}
